package com.icss.flow.mapper;
import camundajar.impl.scala.Int;
import com.icss.flow.pojo.entity.Entity;
import org.apache.ibatis.annotations.Param;
import org.camunda.feel.syntaxtree.In;
import org.stringtemplate.v4.ST;

import java.util.List;
import java.util.Map;

public interface CommEntityMapper {
//    List<Map<String, Object>> getEntity(@Param("entityName") String entityName,@Param("param") List<String> param);

    Entity getEntityDetail(Integer entityCode);

    List<Map<String, Object>> getEntity(@Param("idName")String idName, @Param("entity") Entity entity,
                                        @Param("order")String order,@Param("searchCondition")String searchCondition,
                                        @Param("defaultCondition") String defaultCondition, @Param("definitionCondition")String definitionCondition,
                                        @Param("offset") Integer offset,@Param("pageSize") Integer pageSize);
    Integer getEntityDataCount(@Param("entity") Entity entity, @Param("searchCondition")String searchCondition,
                               @Param("defaultCondition") String defaultCondition,@Param("definitionCondition")String definitionCondition);

    int updateEntityById(@Param("param")Map<String,Object> param, @Param("id") Integer id, @Param("entity")Entity entity, @Param("idName")String idName);

    int commonCreteEntityData(@Param("physicalName") String physicalName,@Param("convertedParam") Map<String, Object> convertedParam);
}
